package com.ganee.agora.repository

import com.ganee.agora.api.MainApiService
import com.ganee.agora.model.InsertActivityEntity
import com.ganee.baselib.httprequest.callback.RequestCallback
import com.ganee.baselib.mvvmlibrary.base.BaseRepository
import com.ganee.baselib.mvvmlibrary.base.BaseViewModel
import okhttp3.RequestBody

class SearchRepository(baseViewModel: BaseViewModel<*>) : BaseRepository(baseViewModel){
    /**
     * 获取搜索列表
     */
    fun getSearchList(body: RequestBody, callback: RequestCallback<List<InsertActivityEntity>>) {
        execute(getApi(MainApiService::class.java).getSearchList(body), callback)
    }
}
